
/**
 *  \file obex_extern.h
 *
 *  This OBEX internal header file includes all the external declaration
 *  of variables used in OBEX.
 */

/*
 *  Copyright (C) 2013. Mindtree Ltd.
 *  All rights reserved.
 */

#ifndef _H_OBEX_EXTERN_
#define _H_OBEX_EXTERN_

#ifdef OBEX

/* --------------------------------- External Global variables */
/**
 *  @addtogroup External Global Variables
 *  @{
 */

/* OBEX FSM entitiy */
extern DECL_CONST FSM_MODULE_TABLE_T obex_fsm;

/* OBEX FSM Identifier index */
extern UCHAR obex_fsm_id;

/*
 *  External global variable to store all the obex instances.
 *  Number of instances can be changed by changing the
 *  OBEX_MAX_INSTANCES value which is a
 *  tunable parameter declared in BT_limits.h.
 *  The variables obex_inst and obex_mutex are declared in obex_init.c
 */
extern OBEX_SESSION obex_inst[OBEX_MAX_INSTANCES];

/* OBEX global mutex */
BT_DEFINE_MUTEX_TYPE (extern, obex_mutex)

/* OBEX L2CAP flow identifier */
extern UCHAR obex_l2cap_flow;

/**@}*/

#endif /* OBEX */

#endif /* _H_OBEX_EXTERN_ */

